package com.liliudong.pinkyponk.biz.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liliudong.pinkyponk.biz.sys.entity.SysRole;
import com.liliudong.pinkyponk.biz.sys.mapper.SysRoleMapper;
import com.liliudong.pinkyponk.biz.sys.service.SysRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * SysRoleService
 *
 * @author liliudong
 * @date 2022-06-01 13:06
 **/
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements
        SysRoleService {

    @Override
    public List<SysRole> getRolesByUserId(Long userId) {
        return baseMapper.selectRolesByUserId(userId);
    }
}
